<?php
namespace Home\Controller;
use Think\Controller;

class CommonController extends  Controller{

    public function  _initialize()
    {
        $this->navs=M('navs')->order('sort')->where(array('status'=>1))->select();
        //p($navs);die();
    }
}